#!/bin/bash

### if elif else 结构演示

echo -n "Is it morning? Please input 'yes' or 'no' "
read ans

if [ "yes" = "$ans" ]; then
    echo "Good morning"
elif [ "yes" = "$ans" ]; then
    echo "Good afternoon"
else
    echo "Sorry, $ans not recongized. Enter yes or no"
fi
